{{useCss "/app-pages/css/admin/post.scss"}}
<div class="post">
	<div class="title">
		标题：
		<input type="text" bind-input="{{'$Cache.admin.post.new.title'}}" bind-value="{{$Cache.admin.post.new.title}}" placeholder="请输入话题标题" />
	</div>
	<div class="imagebox">
		话题封面(点击图片可删除)：<button disabled="{{$Cache.admin.post.uploading}}" onclick="javescript:document.getElementById('_upload_post_preview').click()">{{$Cache.admin.post.uploading?"正在上传":"请选择话题封面"}}</button>
		<input type="file" accept="image/*" placeholder="请选择话题封面" event-change="{{'$Event.admin.post.upload_post_preview'}}" id="_upload_post_preview" style="display: none" />
		<div class="img">
			<img src="{{$Cache.admin.post.new.preview_img||'/images/public/post_preview.png'}}?imageView2/1/h/200" event-click="{{'$Event.admin.post.delete_post_preview'}}" />
		</div>
	</div>
	<div class="module">
		请选择版块：
		<label style="padding-right:15px;">{{$Cache.admin.post.new._module_name}}</label>
		<select event-change="{{'$Event.admin.post.select_module'}}">
			<option value="false">--请选择版块--</option>
			{{#each $Cache.admin.post.module_list}}
			<option bind-value="{{$Index}}">{{name}}</option>
			{{/each}}
		</select>
	</div>
	<div class="content">
		<textarea id="edit" name="edit" class="edit"></textarea>
	</div>
	<button event-click="{{'$Evemt.admin.post.submit_post'}}">提交</button>
</div>
<div class="cover {{$Cache.admin.post.detail_loading&&'focus'}}">
	<div class="text">正在加载...</div>
</div>